/** ###################################################################
**     Filename  : first.C
**     Project   : first
**     Processor : 56F8013VFAE
**     Version   : Driver 01.14
**     Compiler  : Metrowerks DSP C Compiler
**     Date/Time : 2012-3-6, 21:36
**     Abstract  :
**         Main module.
**         This module contains user's application code.
**     Settings  :
**     Contents  :
**         No public methods
**
** ###################################################################*/
/* MODULE first */


/* Including needed modules to compile this module/procedure */
#include "Cpu.h"
#include "Events.h"
#include "IO1.h"
#include "IO2.h"
#include "InpB1.h"
#include "Bit1.h"
#include "Bit2.h"
#include "Bit3.h"
#include "EInt1.h"
#include "InpB2.h"
/* Including shared modules, which are used for whole project */
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"


void main(void)
{
  /* Write your local variable definition here */

  /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
  PE_low_level_init();
  /*** End of Processor Expert internal initialization.                    ***/

  /* Write your code here */
  
  IO1_Init();
  IO2_Init();
//  InpB1_GetVal()
  for(;;) {
  
//  Bit1_SetVal();

//  Bit1_SetDir(TRUE);

   clrSetReg16Bits(GPIO_A_PUR,1,0);
   Cpu_Delay100US(1000);
   clrSetReg16Bits(GPIO_A_PUR,0,1); 
   Cpu_Delay100US(1000);

  }
}

/* END first */
/*
** ###################################################################
**
**     This file was created by Processor Expert 3.00 [04.35]
**     for the Freescale 56800 series of microcontrollers.
**
** ###################################################################
*/
